#include <iostream>
#include <vector>

int main() {
    auto vec = std::vector<int>();
    vec.push_back(1);
    vec.push_back(2);
    vec.push_back(3);
    vec.push_back(4);
    auto& first = vec.at(0);
    std::cout << "vector revsers: " << vec.size() << std::endl;
    std::cout << "vector capacity: " << vec.capacity() << std::endl;
    std::cout << "vec[0]: " << &vec[0] << std::endl;
    std::cout << "first: " << &first << std::endl;
    vec.push_back(5);
    std::cout << "vector revsers: " << vec.size() << std::endl;
    std::cout << "vector capacity: " << vec.capacity() << std::endl;
    std::cout << "vec[0]: " << &vec[0] << std::endl;
    std::cout << "first: " << &first << std::endl;

    return 0;
}
